package cn.szzsi._web;

import com.jfinal.captcha.CaptchaRender;
import com.jfinal.core.Controller;

public class CaptchaController extends Controller {

    public void index(){
        renderCaptcha();
    }

    public void validate(){
        CaptchaRender.validate("inputRandomCode",getPara("inputRandomCode"));
        boolean result = validateCaptcha("inputRandomCode");
        renderJson(result);
    }
}
